using BootstrapBlazorApp.Server.LLMs.api;
using Newtonsoft.Json;

namespace BootstrapBlazorApp.Server.LLMs.messages;

public class AiMessage(string content) : IBaseMessage
{
    public AiMessage(List<ReturnMessage.ToolCall>? toolCalls) : this("")
    {
        ToolCalls = toolCalls;
    }

    public string Content { get; set; } = content;
    public string Role { get; set; } = "assistant";
    
    [JsonProperty("tool_calls", NullValueHandling = NullValueHandling.Ignore)]
    public List<ReturnMessage.ToolCall>? ToolCalls { get; init; }
    
}

